<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form>
            <p:outputLabel value="Edit" />
            <f:view>
                <h:form>
                    <h1><h:outputText value="Edit #{companyDenominationAction.comp.name}"/></h1>
                    <h:panelGrid columns="2" cellpadding="10" cellspacing="10">
                        <p:outputLabel value="Name:" for="name" />
                        <p:inplace editor="true">
                            <p:inputText id="name" value="#{companyDenominationAction.comp.name}" title="Name" />
                        </p:inplace>
                        <p:outputLabel value="Recharge Code:" for="rechargeCode" />
                        <p:inplace  editor="true">
                            <p:inputText id="rechargeCode" value="#{companyDenominationAction.comp.rechargeCode}" title="RechargeCode" />
                        </p:inplace>
                        <p:outputLabel value="Prefix Code:" for="prefixCode" />
                        <p:inplace editor="true">
                            <p:inputText id="prefixCode" value="#{companyDenominationAction.comp.prefixCode}" title="PrefixCode" />
                        </p:inplace>
                        <p:commandButton value="Update" action="#{companyDenominationAction.actualUpdateCompanyDetails}" ajax="false" immediate="true" update="@form" />
                    </h:panelGrid>
                </h:form>
            </f:view>
        </h:form>
    </h:body>
</html>

